package com.aliyun.messagemgt.converter;

import com.aliyun.messagemgt.dto.MsgSource;
import com.aliyun.messagemgt.entities.MsgSourceEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @ClassName: MsgSourceConverter
 * @Description:
 * @Author: wugongzi
 * @Date: 2021/9/13 19:05
 * @Version: 1.0
 */
@Mapper
public interface MsgSourceConverter {
    MsgSourceConverter INSTANCE = Mappers.getMapper(MsgSourceConverter.class);

    List<MsgSource> msgSourceEntityList2msgSourceList(List<MsgSourceEntity> msgSourceEntityList);

    MsgSource msgSourceEntity2msgSource(MsgSourceEntity msgSourceEntity);
}
